import '../../util/http.dart';
import 'package:flutter/material.dart';

class HeartApi{
  BuildContext? context;

  static HeartApi of(BuildContext? context){
    HeartApi heartApi = HeartApi();
    heartApi.context = context;
    return heartApi;
  }

  /// 归位
  Future<dynamic> homing(String ip) async{
    return ApiService.of(context).put('lgs/heart/homing/'+ip, null);
  }
}